package homeWork05.Test5;

public class Person {
    //定义一个人类Person：定义一个方法sayHello()，可以向对方发出问候语“hello,my name is XXX” ，
    // 有三个属性：名字、身高、体重 。
    String name;
    double height;
    double width;
    int age;

    public Person(){}

    public Person(String name,double height,double width){
        this.height = height;
        this.name = name;
        this.width = width;
    }

    public Person(String name,int age,double height){
        this.name = name;
        this.height = height;
        this.age = age;
    }

    public void sayHello(){
        System.out.println("hello,my name is "+name);
    }
}
